<!--{loop $_QUERY[mydata] $val}-->
<li>
<!--{eval $s_picture=$val[filename]?get_picture($val[folder],$val[filename],'small'):$_config['siteurl'].'images/s_noimg.gif'}-->
    <div><a href="{$_modules[shop][url]}shop_pic.php?shopid=$val[shopid]" target="_blank"><img src="$s_picture" /></a></div>
</li>
<!--{/loop}-->